#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}

void Widget::on_btSalir_clicked()
{
    close();
}

void Widget::on_btPrint_clicked()
{
    char* tmpfilename = "/tmp/report.txt";
    qDebug() << "on_btPrint_clicked";
    int job_id = cupsPrintFile("PDF", tmpfilename, "Reporte", 0, NULL);
    qDebug() << job_id;
}
